/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package alcatraz.common;

import java.util.logging.Level;

/**
 * all defines within package 'alcatraz.*'
 *
 * @author andreas
 */
public interface IAlcatraz {

    /** defines state of client */
    public static enum ClientState {
        /** client in initialize/unregistry phase */
        INIT,
        /** client is already in registry state (but not ready) */
        REGISTRY,
        /** client in ready state (player is ready to start) */
        READY,
        /** game on client is running */
        RUN,
        /** no connection to [remote] client */
        DISCONNECTED
    }

    public static String READ =  "r";
    public static String WRITE = "w";

    /** exit value: application succes */
    public static final int APPL_SUCC = 0;
    /** exit value: application failed */
    public static final int APPL_FAIL = 1;

    /** maximal number of selectable server address (in client combobox) */
    public static int MAX_SELECTED_SERVER_ADDR = 4;
    
    /** config file of for LogManager */
    public static final String LOG_CONFIG = "log.properties";
    /** logging file */
    public static final String LOG_FILE = "log.txt";
    /** logging level */
    public static final Level LOG_LEVEL = Level.INFO;
    /** true: logging to console (instead to file) */
    public static final boolean LOG2CONSOLE = true;
    /** maximal number of players */
    public final static int MAX_NUMBER_OF_PLAYERS = 4;
    /** Timeout Settings */
    public final static int TIMEOUT = 4000;
    /** name of the spread group */
    public final static String SpreadGroupName = "alcatraz";
    /** name of the rmi implentation */
    public final static String RMIServerName = "AlcatrazServer";
    /** used host for connection (spread and rmi */
    public final static String Host = "localhost";

}
